from django.http import HttpResponse

from wake_main.models import UserMac


# Create your views here.

def wake_mac(request):
    um = str(list(UserMac.objects.filter(need_wake=True).values_list("mac", flat=True)))
    UserMac.objects.all().update(need_wake=False)
    return HttpResponse(um, status=200)
